#ifndef ProjectImageWall_H
#define ProjectImageWall_H

#include "ProjectSandbox.h"

#define MyImgMAXNUM (10)
class ProjectImageWall : public ProjectSandbox
{
public:
    ProjectImageWall(const std::string &name = "Sandbox", CC::Scene* scene = nullptr);
	virtual ~ProjectImageWall();

	virtual void OnAttach() override;
	virtual void OnDetach() override;

    virtual void OnUpdate(CC::Timestep ts, std::string renderscene = "") override;
    
private:
    float time = 0.0;
    CC::Entity* m_imgs[MyImgMAXNUM] = { nullptr };

    float m_values[MyImgMAXNUM] = { 0.0 };
    CC::AnimationPropertyGroup* m_anims[MyImgMAXNUM] = { nullptr };

    bool m_init = false;

    int m_imgNumInScreen = 5;//n img in one screen

    CC::Entity* m_txt_fps;
};

#endif